Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error in rustic-cargo-add with prefix argument #536

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sigvei
Copy link

@sigvei sigvei commented Oct 17, 2023

rustic-cargo-add with a prefix command called read-from-minibuffer with erroneous arguments.

The current master produces this error message:

funcall-interactively: Wrong type argument: keymapp, " add "

This is due to the line (read-from-minibuffer "Cargo add command: " (rustic-cargo-bin) " add "), which makes " add " a third argument to read-from-minibuffer. I guess it's suppose to just be concated with rustic-cargo-bin.

This commit implements that and also DRY's the code by storing the base command in a let binding.

`rustic-cargo-add` with a prefix command called `read-from-minibuffer` with erroneous arguments.

This version also DRY's the code by storing the base command in a let binding.
@LionyxML
Copy link

@brotzeit this is very simple and very useful, do you think you could review it in a near future?

Thanks @sigvei

@psibi
Copy link
Collaborator

psibi commented Mar 16, 2024

@LionyxML Unfortunately I have been not able to reach @brotzeit. I maintaining a temporary (hopefully) fork here: https://github.com/psibi/rustic

CeleritasCelery added a commit to emacs-rustic/rustic that referenced this pull request May 17, 2024
Original description by @sigvei in brotzeit/rustic#536:

rustic-cargo-add with a prefix command called read-from-minibuffer with erroneous arguments.

The current master produces this error message:

funcall-interactively: Wrong type argument: keymapp, " add "

This is due to the line (read-from-minibuffer "Cargo add command: " (rustic-cargo-bin) " add "), which makes " add " a third argument to read-from-minibuffer. I guess it's suppose to just be concated with rustic-cargo-bin.

This commit implements that and also DRY's the code by storing the base command in a let binding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants